package com.example.user.service.application.service;

import com.example.user.service.application.port.in.GetUserByIdUseCase;
import com.example.user.service.domain.User;
import com.example.user.service.domain.port.GetUserByIdPort;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class GetUserByIdService implements GetUserByIdUseCase {

    @Resource
    private GetUserByIdPort getUserByIdPort;
    @Override
    public User getUserById(Long id) {
        return getUserByIdPort.getUserById(id);
    }
}
